﻿<!doctype html>
<html class="no-js">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>登录</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <script src="assets/js/jquery.min.js"></script>
  <script src="assets/js/user_login.js"></script>
  <link rel="stylesheet" href="assets/css/amazeui.min.css">
  <link rel="stylesheet" href="assets/css/user_login.css">
  <script src="assets/js/amazeui.js"></script>
 <script src="assets/js/PublicFunction.js"></script> 
 <script src="assets/js/baiduTemplate.js"></script>

</head>
<body>
<div id="parent" >
		
	<div class="am-container" id="top_mig">
	
		<div id="portrait" >
			<img class="am-circle" id="portrait_img" src="http://s.amazeui.org/media/i/demos/bw-2014-06-19.jpg?imageView/1/w/1000/h/1000/q/80"/>
		</div>
	
	</div>
	
	<div class="am-g" style="font-size:13px;margin:auto auto;">
		<div class="am-u-md-8 am-u-sm-centered" id ="sign_inform">

		<script type="text/javascript" id='sign_in1'> 
			<form class="am-form" >
				<div class="am-input-group am-input-group">
					  <span class="am-input-group-label">账号</span>
					<input type="text" id = "userName" name ="userName"class="am-form-field" placeholder="Username" value=<%=username%> >
				</div>
				</br>
				<div class="am-input-group am-input-group">
					 <span class="am-input-group-label">密码</span>
					<input type="password" id = "password" name ="password" class="am-form-field" placeholder="Password" value=<%=password%> >
				</div>
				
				<div class="am-g" style="margin-top: 10px;">
					<div class="am-u-sm-5" style="color:green;" ><a href="javascript:gotoLogin()">注册账号</a></div>
					<div class="am-u-sm-5" style="text-align:right;color:green;">忘记密码?</div>
				</div>
			
			
				<button type="button" class="am-btn am-btn-primary am-btn-block " onClick="actuator('sign_in()')" >登陆</button></P>
			</form>
			</script>
			
				<P>
			</br></br>
				<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default "id="" style="background-color:white">
					<ul class="am-navbar-nav am-cf am-avg-sm-4" style="background-color:#f5f5f5">
						<li>
							<a href="javascript:gotoMain()">
							<span class="am-navbar-label" style="color:green;">切换账号</span>
							</a>
						</li>
					</ul>
				</div>
		</div>		
	</div>
</div>	




<script type="text/javascript">
<!--页面初始化-->
function init(w ,h) {
//	sign_in();
	var functionname = "intifunction("+w+","+h+")";
	actuator(functionname);
  };
  
  function intifunction(w,h){
		
	  setStyle(w,h);
	  setTop_mig("assets/img/userback.png");
		

	var username =getLoginUserName();
	var password =getLoginUserpassword();

 	var data12={"password":password, "username":username};
 	var bat=baidu.template;
	var html=bat('sign_in1',data12);
	document.getElementById('sign_inform').innerHTML=html; 
	closeloading();
  }
 function sign_in(){
	 var a = LoginFunction.sign_in($("#userName").val(),$("#password").val());
 }
 /**返回主页**/
 function gotoMain(){
	 Public_method.gotoMain();
	 
 }
 

 /**跳转注册页面**/
 function gotoLogin(){
	 Public_method.gotoLogin();
	 
 }
 
</script>
</body>
</html>
